<%-- 
    Document   : poduct-detail
    Created on : Aug 23, 2011, 10:57:43 AM
    Author     : Administrator
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="pojo.GiayPOJO"%>
<%@page import="pojo.GiayHinhPOJO"%>
<%@page import="dao.GiayHinhDAO"%>
<%@page import="dao.GiayDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    //Lấy thông tin giày.
    int maGiay = (Integer) request.getAttribute("maGiay");
    
    //Lấy thông tin giày.
    GiayPOJO giay = (GiayPOJO) request.getAttribute("giay");
    
    //Lấy hình của giày.
    ArrayList<GiayHinhPOJO> dsGiayHinh = (ArrayList<GiayHinhPOJO>) request.getAttribute("dsGiayHinh");

%>


<div id="poduct-detail"><!--Start poduct-detail-->  
    <div id="left">
    <div style="width: 325px; height: 315px; margin-left: 9px;">
        <div style="position: relative; height: 295px;">
        <a id="slide1" style="position: absolute; outline-style: none; text-decoration: none; cursor: crosshair; display: block; height: 300px; width: 300px; z-index: 1;" class="jqzoom" href="<%=request.getContextPath()%>/client/<%=dsGiayHinh.get(0).getHinhLon()%>"><img src="<%=request.getContextPath()%>/client/<%=dsGiayHinh.get(0).getHinhTrungBinh()%>"></a><a id="slide2" style="position: absolute; z-index: -1; outline-style: none; text-decoration: none; cursor: crosshair; display: block; height: 300px; width: 300px;" class="jqzoom" href="<%=request.getContextPath()%>/client/<%=dsGiayHinh.get(1).getHinhLon()%>" title=""><img src="<%=request.getContextPath()%>/client/<%=dsGiayHinh.get(1).getHinhTrungBinh()%>" title=""></a>
        </div>
     </div>
    <div id="product-detail-thum">
        <img onmouseover="switchTo(1);" src="<%=request.getContextPath()%>/client/<%=dsGiayHinh.get(0).getHinhNho()%>" id="span1"><img onmouseover="switchTo(2);" src="<%=request.getContextPath()%>/client/<%=dsGiayHinh.get(1).getHinhNho()%>" id="span2">
            <div class="clear"></div>
        </div>
    </div>
    <div id="right">
        <div style="font-size: 14px;" id="text3"></div>
        <div style="font-size: 19px;" id="text2"><%=giay.getGiaBan()%> VNĐ</div>
        <span id="title"><%=giay.getTenGiay()%></span>
        <div id="content">
            <%
                if (session.getAttribute("KhachHang") != null){
            %>
                <a href="<%=request.getContextPath()%>/GioHangController?action=Them&MaGiay=<%=giay.getMaGiay()%>">
                    <img src="<%=request.getContextPath()%>/client/images/btThemVaoGio.png" class="btThemVaoGio" />
                </a>
            <% }%>
        </div>
        <div style="background: none repeat scroll 0% 0% transparent;" id="title">Màu sắc</div>
        <div class="clear"></div>
        <div style="margin-left: 10px;">
                            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>
</div><!--End poduct-detail-->  
